import { createRouter, createWebHistory } from 'vue-router';
import Home from '../pages/Home.vue'; // 主界面
import Inventory from '../pages/Inventory.vue'; // 库存管理页面

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home, // 主界面
  },
  {
    path: '/inventory',
    name: 'Inventory',
    component: Inventory, // 库存管理页面
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;